package dto

import (
	"vmapp/app0/internal/models"
)

// GetRoleReq
type GetRoleReq struct {
	ID int32 `form:"id" json:"id" validate:"required"`
}

// DeleteRoleReq
type DeleteRoleReq struct {
	ID int32 `form:"id" json:"id" validate:"required"`
}

type CreateRoleReq struct {
	RoleName    string `json:"roleName" form:"roleName" validate:"required"`
	RoleCode    string `json:"roleCode" form:"roleCode" validate:"required"`
	MenuIds     string `json:"menuIds" form:"menuIds"`
	IndexMenu   string `json:"indexMenu" form:"indexMenu"`
	Description string `json:"description" form:"description"`
	Enabled     bool   `json:"enabled" form:"enabled"`
}

type UpdateRoleReq struct {
	Id int32 `json:"id" form:"id" validate:"required"`
	CreateRoleReq
}

type ListRoleResp struct {
	models.Role
}
